<div class="sidebar-right">
    <!--标题-->
    <div class="sidebar-right-title">
        <div class="sidebar-right-title-l">数据字典管理</div>
        <div class="clear"></div>
    </div>
    <!--标题结束-->
    <!--详细内容-->
    <div class="engine-tab-content project-management">
        <div class="engine-test-manage engine-business">

        </div>
        <!--搜索结束-->
        <!--表格-->
        <g-data-source url="/grule-manager/data_dict" allow-auto-load="true" page="true" data-source-name="dataDictSource"></g-data-source>
        <g-data-source url="/grule-manager/data_dict_detail"  page="true" data-source-name="dataDictDetailSource"></g-data-source>

        <div  style="float: left;width:500px">
            <div class="engine-test-manage-l">
                <input type="text" placeholder="大类名称" class="project-name" ng-model="dataDict.dataName" ng-keyup="myKeyup($event)">
                <i class="engine-delete" ng-show="removeShow" ng-click="deleteInput()" style="position:absolute;right:10px;top:1px;color:#999;"><img src="/static/images/close.png"></i>
                <button type="button" class="engine-btn-default"ng-click="actions.search()" style="margin-left: 10px">查询</button>
                <button type="button" class="engine-btn-default" ng-click="actions.openEditView()"><i class="icon-engine-plus"></i>新增</button>
            </div>

            <div class="clear"></div>
            <g-data-grid data-source-name="dataDictSource"
                         data-on-load-success="empGridSuccess(grid, source)"
                         data-checked-rows="empCheckedRows"
                         g-height="291" g-width="370px" >
                <g-column width="150px" data="dataName">
                    字典大类
                </g-column>
                <g-column width="220">
                    操作
                    <g-column-tmpl>
                        <a class="btn icon-engine-edit" title="编辑" ng-click="actions.openEditView(row)"></a>
                        <a class="btn icon-engine-delete" title="删除" ng-click="actions.deletePackage(row.id)"></a>
                        <a class="btn" ng-click="actions.addChild(row.id)" >新增子数据</a>
                        <a class="btn" title="查看子数据" ng-click="actions.searchChildren(row.id)" >⇒</a>


                    </g-column-tmpl>
                </g-column>
            </g-data-grid>
            <g-pagination-page   source-name="dataDictSource"/>
        </div>

        <div  style="float: left;width:35%">
            <div class="engine-test-manage-l">
                <input type="text" placeholder="字典名称" class="project-name" ng-model="dataDictDetail.dataName" ng-keyup="myKeyup($event)">
                <i class="engine-delete" ng-show="removeShow" ng-click="deleteInput()" style="position:absolute;right:10px;top:1px;color:#999;"><img src="/static/images/close.png"></i>
                <button type="button" class="engine-btn-default"ng-click="actions.search2()" style="margin-left: 10px;margin-bottom: 5px">查询</button>
            </div>


            <g-data-grid data-source-name="dataDictDetailSource"
                         data-on-load-success="empGridSuccess(grid, source)"
                         data-checked-rows="empCheckedRows"
                         g-height="291" g-width="410px" >
                <g-column width="150px" data="dataName">
                    字典名称
                </g-column>
                <g-column  width="150px" data="dataCode">字典编码</g-column>
                <g-column width="100">
                    操作
                    <g-column-tmpl>
                        <a class="btn icon-engine-edit" title="编辑" ng-click="actions.openEditView2(row)"></a>
                        <a class="btn icon-engine-delete" title="删除" ng-click="actions.deletePackage2(row.id)"></a>

                    </g-column-tmpl>
                </g-column>
            </g-data-grid>
            <g-pagination-page   source-name="dataDictDetailSource"/>
        </div>
    </div>
</div>